package cn.ixinjiu.libraryMangement.service.impl;

import cn.ixinjiu.libraryMangement.dao.IBookInfoDao;
import cn.ixinjiu.libraryMangement.dao.impl.BookInfoDaoImpl;
import cn.ixinjiu.libraryMangement.entity.BookInfo;
import cn.ixinjiu.libraryMangement.service.IBookInfoService;

import java.util.List;

/**
 * Created by XinChen on 2023-05-22
 *
 * @TODO
 */
public class BookInfoServiceImpl implements IBookInfoService {
    private IBookInfoDao iBookInfoDao = new BookInfoDaoImpl();

    @Override
    public List<BookInfo> booksInfo() {
        return iBookInfoDao.booksInfo();
    }

    @Override
    public int count() {
        return iBookInfoDao.count();
    }

    @Override
    public BookInfo getBookInfoById(int id) {
        return iBookInfoDao.getBookInfoById(id);
    }

    @Override
    public int bookInfoAdd(BookInfo bookInfo) {
        return iBookInfoDao.bookInfoAdd(bookInfo);
    }

    @Override
    public int bookInfoUpd(BookInfo bookInfo) {
        return iBookInfoDao.bookInfoUpd(bookInfo);
    }

    @Override
    public int bookInfoDel(int id) {
        return iBookInfoDao.bookInfoDel(id);
    }
}
